import{d as w,p as _,aQ as $,b as c,o as f,a as n,e as V,t as r,u as t,F as g,f as l,w as d,s}from"./CtbHscGXagutd.js";import{M as C}from"./YBl7R9D3Rz5uC.js";import{_ as h}from"./Bkwc4mn985i4h.js";import{_ as T}from"./Cxks10UZ1E6jjF.js";import{_ as m}from"./DxtVL4raPQMM7.js";import"./CtybWkkwagutd.js";import"./Dbo4x1w21esOcA.js";import"./Bz2936FN3aD96J.js";const F=w({__name:"app-settings-workspace",setup(E){const k=_("page-settings"),a=$();async function u(){const e=a?.value.title??"";k("change title",e,s.workspace?.title,s.workspace?.storage),s.workspace&&(s.workspace.title=e,s.workspaces[s.workspace.id].title=e,await s.workspace?.storage.setMeta(C,e))}return(e,o)=>(f(),c(g,null,[n("h3",null,r(e.$t("settings.workspace.title")),1),t(a)?(f(),c(g,{key:0},[l(t(m),{title:e.$t("settings.workspace.labelTitle")},{default:d(({id:i})=>[l(t(h),{id:i,modelValue:t(a).title,"onUpdate:modelValue":o[0]||(o[0]=p=>t(a).title=p),placeholder:e.$t("unnamed"),class:"full",onChange:u},null,8,["id","modelValue","placeholder"]),n("p",null,r(e.$t("settings.workspace.descTitle")),1)]),_:1},8,["title"]),l(t(m),{title:e.$t("settings.workspace.labelDescription")},{default:d(({id:i})=>[l(t(T),{id:i,modelValue:t(a).notes,"onUpdate:modelValue":o[1]||(o[1]=p=>t(a).notes=p),class:"full",onChange:u},null,8,["id","modelValue"])]),_:1},8,["title"]),l(t(m),{title:e.$t("settings.workspace.id")},{default:d(({id:i})=>[n("p",null,r(e.$t("settings.workspace.descId")),1),n("pre",null,r(t(s).workspace?.id),1)]),_:1},8,["title"])],64)):V("",!0)],64))}});export{F as default};